package com.nieshenkuan.cloud.apis;


import com.nieshenkuan.cloud.resp.ResultData;
import com.nieshenkuan.cloud.resp.ReturnCodeEnum;
import org.springframework.stereotype.Component;

/**
 * OpenFeign和Sentinel集成实现fallback服务降级
 * 默认的降熔断方法
 * @auther
 * @create
 */
@Component
public class PayFeignSentinelApiFallBack implements PayFeignSentinelApi
{
    @Override
    public ResultData getPayByOrderNo(String orderNo)
    {
        return ResultData.fail(ReturnCodeEnum.RC500.getCode(),"对方服务宕机或不可用，FallBack服务降级o(╥﹏╥)o");
    }
}
